<script setup>
import { ref, computed } from 'vue'
const score = ref([82, 56, 88, 90, 95, 100])
const goodScore = computed(() => {
  console.log('执行了');
  return score.value.filter(item => item >= 90)

})
</script>

<template>
  <div>全部成绩{{ score }}</div>
  <div>好成绩{{ goodScore }}</div>
  <div>好成绩{{ goodScore }}</div>
  <div>好成绩{{ goodScore }}</div>
  <div>好成绩{{ goodScore }}</div>
</template>

<style scoped></style>